<!-- 添加求职期望 -->
<template>
	<view>
		<view class="page">
			<u-form :model="form" ref="uForm">
				<u-form-item label="岗位">
					<u-input v-model="form.jobPostsName" placeholder="输入从事岗位" />
				</u-form-item>
				<u-form-item label="城市">
					<u-input v-model="form.jobCity" placeholder="输入工作城市" />
				</u-form-item>
				<u-form-item label="行业">
					<u-input v-model="form.jobIndustry" placeholder="输入从事行业" />
				</u-form-item>
				<u-form-item label="薪资">
					<u-input v-model="form.jobLower" type="number" maxlength="3" placeholder="输入期望最低薪资" />k
					<u-input v-model="form.jobUpper" type="number" maxlength="3" placeholder="输入期望最高薪资" />k
				</u-form-item>
			</u-form>

		</view>
		<view class="button flex justify-center align-center" @click="submit">提 交</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				form: {
					jobPostsName: '',
					jobCity: '',
					jobIndustry: '',
					jobUpper: '',
					jobLower: ''
				},
			}
		},
		methods: {
			async submit() {
				await this.$post('/userResumeJobPosts/save', this.form)
				await uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style lang="scss">
	.page {
		padding: 20rpx;
	}
	.button{
		position: fixed;
		bottom: calc(20rpx + env(safe-area-inset-bottom));
		width: 690rpx;
		left:30rpx;
		height: 75rpx;
		background: #0265EB;
		border-radius: 38rpx;
		line-height: 75rpx;
		font-weight: 500;
		color: #FFFFFF;
		font-size: 32rpx;
		box-shadow: 0rpx 10rpx 10rpx rgba(12,108,240, .4);
	}
</style>
